package com.changgou.service.goods.dao;

import com.changgou.goods.pojo.Brand;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

public interface BrandMapper extends Mapper<Brand> {

    @Select("SELECT * FROM `tb_brand WHERE(`name`=#{str} OR `letter`=#{str})")
    public Page<Brand> selectByCondition(@Param("str") String str);
}
